package com.qinhailin.portal.dbm.service;

import com.qinhailin.portal.dbm.model.DTSystemdata;

/** 2019-11-23 21:28:46 批量生成 harrydeep@wardyan.top **/
public class DTSystemdataServiceImpl extends MasterServiceImpl<DTSystemdata>{

	public DTSystemdataServiceImpl() {super(DTSystemdata.dao);}
	
	/**
	 * 默认心跳间隔,单位毫秒
	 * @return
	 */
	public Integer heartbeatInterval() {
		DTSystemdata d = this.findByID(1001);
		return d != null && d.getXInt() != null && d.getXInt() > 0 ? d.getXInt() : 60000;
	}

}
